﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace StarlightUI
{
    public class Help
    {
        public static Color BlendColor(Color l, Color r, float f)
        {
            var lr = (int)l.R;
            var lg = (int)l.G;
            var lb = (int)l.B;
            var la = (int)l.A;
            var rr = (int)r.R;
           var rg = (int)r.G;
            var rb = (int)r.B;
            var ra = (int)r.A;
            lr+=(int)((float)(r.R-l.R)*f);
            lg+=(int)((float)(r.G-l.G)*f);
            lb+=(int)((float)(r.B-l.B)*f);
            la+=(int)((float)(r.A-l.A)*f);
            return Color.FromArgb(la, lr, lg, lb);
           }
    }
}
